<?php $this->registerResourcePackage('referenceMany')?>
<div class="form-group">
	<label class="col-sm-3 control-label"><?php echo $params['label'] ?></label>
	<div class="col-sm-7"
		 data-container="body"
		 data-errors='<?php echo json_encode($errors)?>'
		 data-trigger="manual" data-toggle="popover" data-placement="right"
		>
		<input type="text" <?php echo $htmlOptions?>
			   data-errors='<?php echo json_encode($errors)?>'
			   name="<?php echo $params['name'] ?>"
			<?php if (isset($params['typeahead'])) {?>
				query-url="<?php echo $this->url($params['typeahead']['action'], (array)$params['typeahead']['params'])?>"
			<?php } ?>
			   class="form-control tagsinput-many"
			   data-value="<?php echo $value ?>" />
		<?php if (isset($params['description'])): ?>
			<div>
				<?php echo $params['description']; ?>
			</div>
		<?php endif; ?>
	</div>
</div>







